import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CupertinoLoadingWidget extends StatelessWidget {
  final double size;
  final double padding;

  const CupertinoLoadingWidget({
    Key key,
    this.size = 40.0,
    this.padding = 8.0,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: size,
      width: size,
      child: Padding(
        padding: EdgeInsets.all(padding),
        child: CupertinoActivityIndicator(),
      ),
    );
  }
}
